#!/usr/bin/env python
# -*- coding: utf-8 -*-

from ctypes import *
from .datatype import *

[[ range .]]
class  [[ .FuncTypeName ]](Structure):
    """[[ .Comment ]]"""
    _fields_ = [
        [[ range .FuncFields ]]("[[ .FieldName ]]", [[ .FieldType|baseType ]]),
        [[ end ]]
    ]

    [[ range .FuncFields ]]def get[[ .FieldName ]](self):
        '''[[ .Comment ]]'''
        return [[ rtn .FieldType .FieldName ]]
    [[ end ]][[ end ]]